{include file="public/head" /}
{include file="public/js_ueditor" /}
<!--有理想的地方，地狱都是天堂-->
<!--Copyright @ df81.com 版权所有-->
<!--作者: 南国老符 邮箱：1062129401@qq.com-->
        <!-- 左侧菜单 开始 -->
        <div class="sidebar">
            <nav>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy d-block d-md-none" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_content" /}
                </ul>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy d-block d-md-none" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_data" /}
                </ul>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_global" /}
                </ul>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy d-block d-md-none" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_system" /}
                </ul>
            </nav>
        </div>
        <!-- 左侧菜单 结束 -->
    </aside>
    <!-- 左侧 结束 -->
    <!-- 右侧 开始 -->
    <div class="content-wrapper">
        <!-- 内容导航 开始 -->
        <div class="content-header py-2 bg-white mb-3">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-sm-12">
                        <ol class="breadcrumb">
                            <li>{:lang('v_global')}<i class="fas fa-angle-right mx-2"></i></li>
                            <li>{:lang('v_global')}<i class="fas fa-angle-right mx-2"></i></li>
                            <li>{:lang('v_site_setting')}</li>
                        </ol>
                    </div>
                </div>
            </div>
        </div>
        <!-- 内容导航 结束 -->
        <!-- 内容主体 开始 -->
        <section class="content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-12">
                        <div class="card card-outline card-success">
                            <div class="card-header"><i class="fas fa-cog mr-1"></i>{:lang('v_site_setting')}</div>
                            <div class="card-body">
                                <form name="form_edit" id="form_edit" method="post" action="{:url('/site/index',['lang'=>$lang])}">
                                    <input type="hidden" name="id" value="{$rs.id}">
                                    <input type="hidden" name="lang" value="{:input('lang')}">
                                    <div class="row form-group">
                                        <div class="col-md-3 col-form-label text-right">{:lang('v_site')} {:lang('v_title')}</div>
                                        <div class="col-md-6">
                                            <input type="text" class="form-control" name="title" placeholder="{:lang('v_title_tips')}" value="{$rs.title}" />
                                        </div>
                                    </div>
                                    <div class="row form-group">
                                        <div class="col-md-3 text-right">SEO {:lang('v_keyword')}</div>
                                        <div class="col-md-6">
                                            <textarea name="keyword" rows="2" class="form-control" placeholder="{:lang('v_keyword_tips')}">{$rs.keyword}</textarea>
                                        </div>
                                    </div>
                                    <div class="row form-group">
                                        <div class="col-md-3 text-right">SEO {:lang('v_description')}</div>
                                        <div class="col-md-6">
                                            <textarea name="description" rows="3" class="form-control" placeholder="{:lang('v_description_tips')}">{$rs.description}</textarea>
                                        </div>
                                    </div>
                                    <div class="row form-group {if empty(config('global.url.city_site'))}d-none{/if}">
                                        <div class="col-md-3 col-form-label text-right">{:lang('v_city_site')} {:lang('v_title')}</div>
                                        <div class="col-md-6">
                                            <input type="text" class="form-control" name="city_title" placeholder="{:lang('v_city_title_tips')}-{:lang('v_city_company_tips')}" value="{$rs.city_title}" />
                                            <span class="text-muted">{:lang('v_city_tips')}</span>
                                        </div>
                                    </div>
                                    <div class="row form-group {if empty(config('global.url.city_site'))}d-none{/if}">
                                        <div class="col-md-3 text-right">{:lang('v_city_site')} {:lang('v_keyword')}</div>
                                        <div class="col-md-6">
                                            <textarea name="city_keyword" rows="2" class="form-control" placeholder="{:lang('v_city_keyword_tips')}">{$rs.city_keyword}</textarea>
                                        </div>
                                    </div>
                                    <div class="row form-group {if empty(config('global.url.city_site'))}d-none{/if}">
                                        <div class="col-md-3 text-right">{:lang('v_city_site')} {:lang('v_description')}</div>
                                        <div class="col-md-6">
                                            <textarea name="city_description" rows="3" class="form-control" placeholder="{:lang('v_city_description_tips')}">{$rs.city_description}</textarea>
                                        </div>
                                    </div>
                                    <div class="row form-group">
                                        <div class="col-md-3 col-form-label text-right">{:lang('v_company')}</div>
                                        <div class="col-md-6">
                                            <input type="text" class="form-control" name="company" value="{$rs.company}" />
                                        </div>
                                    </div>
                                    <div class="row form-group">
                                        <div class="col-md-3 col-form-label text-right">{:lang('v_site')} LOGO</div>
                                        <div class="col-md-6">
                                            <div class="input-group">
                                                <input value="{$rs.logo}" name="logo" id="morepics1" type="text" class="form-control">
                                                <span class="input-group-append">
                                                    <button onclick="upImage('#morepics1');" type="button" class="btn btn-success"><i class="fas fa-cloud-upload-alt mr-1"></i>{:lang('v_upload')} {:lang('v_img')}</button>
                                                </span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row form-group">
                                        <div class="col-md-3 col-form-label text-right">ico {:lang('v_language_ico')}</div>
                                        <div class="col-md-6">
                                            <div class="input-group">
                                                <input value="{$rs.ico}" name="ico" id="morepics2" type="text" class="form-control">
                                                <span class="input-group-append">
                                                    <button onclick="upImage('#morepics2');" type="button" class="btn btn-success"><i class="fas fa-cloud-upload-alt mr-1"></i>{:lang('v_upload')} {:lang('v_language_ico')}</button>
                                                </span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row form-group">
                                        <div class="col-md-3 col-form-label text-right">{:lang('v_icpnumber')}</div>
                                        <div class="col-md-6">
                                            <input type="text" class="form-control" name="icp_number" value="{$rs.icp_number}" />
                                        </div>
                                    </div>
                                    <div class="row form-group">
                                        <div class="col-md-3 col-form-label text-right">{:lang('v_icplink')}</div>
                                        <div class="col-md-6">
                                            <input type="text" class="form-control" name="icp_link" value="{$rs.icp_link}" />
                                        </div>
                                    </div>
                                    <div class="row form-group">
                                        <div class="col-md-3 text-right">{:lang('v_htmlcode')}</div>
                                        <div class="col-md-6">
                                            <textarea name="htmlcode" rows="10" class="form-control" placeholder="{:lang('v_htmlcode_tips')}">{$rs.htmlcode}</textarea>
                                        </div>
                                    </div>
                                    <div class="row form-group">
                                        <div class="col-md-3 text-right">{:lang('v_site')} {:lang('v_status')}</div>
                                        <div class="col-md-9">
                                            <label class="form-check form-check-inline">
                                                <input type="radio" name="signid" value="1" {eq name="rs.signid" value="1"}checked="checked" {/eq} class="form-check-input" />{:lang('v_siteopen')}
                                            </label>
                                            <label class="form-check form-check-inline">
                                                <input type="radio" name="signid" value="0" {eq name="rs.signid" value="0"}checked="checked" {/eq} class="form-check-input" />{:lang('v_siteclose')}
                                            </label>
                                        </div>
                                    </div>
                                    <div class="row form-group">
                                        <div class="col-md-3 text-right">{:lang('v_closereason')}</div>
                                        <div class="col-md-6">
                                            <textarea name="closereason" id="content1a" style="width:100%; height:80px;">{$rs.closereason}</textarea>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="offset-md-3 col-md-9 mb-4">
                                            {if is_file(app()->getRootPath().'.env')}
                                                <button type="submit" class="btn btn-success mr-4"><i class="fa fa-check-circle mr-2"></i>{:lang('v_save')}</button>
                                            {else /}
                                                <button type="button" class="do_ajax btn btn-success mr-4" onclick="javascript:do_ajax('#form_edit','.do_ajax','{:url('/site/index',['lang'=>$lang])}','');"><i class="fas fa-check-circle mr-2"></i>{:lang('v_save')}</button>
                                            {/if}
                                            <button type="button" class="btn btn-default" onclick="javascript:history.back(-1);"><i class="fa fa-angle-double-left mr-1"></i>{:lang('v_goback')}</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <!-- 内容主体 结束 -->
    </div>
    <!-- 右侧 结束 -->
{include file="public/foot" /}
<script type="text/plain" id="input_editor" style="display:none;"></script>
{include file="public/js_upload_img" /}
{include file="public/js_rich_text_small" /}
</body>
</html>